package cn.yzx.pethome.system.dept.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.yzx.pethome.base.domain.BaseDomain;
import cn.yzx.pethome.system.emp.domain.Employee;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiParam;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author yzx
 * @since 2023-01-17
 */
@Data
public class Department extends BaseDomain{

    private static final long serialVersionUID = 1L;

    /**
     * 部门编号
     */
    @ApiParam(name="部门编号",required = true)
    @Excel(name="部门编号",orderNum = "1",width = 30,isImportField = "true_st")
    private String sn;
    /**
     * 部门名称
     */
    @ApiParam(name="部门名称",required = true)
    @Excel(name="部门名称",orderNum = "2",width = 30,isImportField = "true_st")
    private String name;
    /**
     * 部门的上级分类层级id
     */
    private String dirPath;
    /**
     * 部门状态，2禁用，1启用
     */
    @Excel(name="部门状态",orderNum = "3",replace = {"正常_1","禁用_2"},width = 30,isImportField = "true_st")
    private Integer state;
    /**
     * 部门管理员，关联Employee表id
     */
    @Excel(name="管理员",orderNum = "4",width = 30,isImportField = "true_st")
    private Long managerId;
    /**
     * 上级部门
     */
    private Long parentId;
    private Long shopId;
    private Employee manager;
    private Department parent;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<Department> children = new ArrayList<>();

}
